package com.md.EoL;

public class EoL32 {

	public static void main(String[] args) {
		long a;
		long b;
		long c;
		long d;
		for (a = 100;a<=999; a++) {
			b=a/100;
			c=a%100/10;
			d=a%10;
			if ((b*b*b+c*c*c+d*d*d)==a) {
				System.out.println(a);
			} 
		}
		
	}

}
